package com.aos.erp.schools.mapper.schoolclass;


import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.schools.model.schoolclass.DriversSchoolClass;
import com.aos.erp.schools.model.schoolclass.DriversSchoolClassInfoVo;
import com.aos.erp.schools.model.schoolclass.QueryClassRo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface DriversSchoolClassMapper extends SuperMapper<DriversSchoolClass> {

	void save(DriversSchoolClass dsc);

	DriversSchoolClassInfoVo queryObject(long id);

	int updateClass(DriversSchoolClass dsc);

	List<DriversSchoolClassInfoVo> queryList(IPage<DriversSchoolClassInfoVo> pageBean, @Param("param") QueryClassRo queryClassRo);

	@Update("update t_drivers_school_class set is_del=-1 where id in (${dataId})")
	void deleteClass(@Param("dataId") String dataId);
}
